import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询案件列表
export function getCaseInfoList(data,query) {
  return request({
    url: '/bussiness/caseinfo/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 查询案件详情
export function getCaseInfoInfo(id) {
  return request({
    url: '/bussiness/caseinfo/info?id=' + id,
    method: 'get',
  })
}

// 新增案件
export function createCaseInfo(data) {
  return request({
    url: '/bussiness/caseinfo/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改案件
export function editCaseInfo(data) {
  return request({
    url: '/bussiness/caseinfo/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除用户
export function deleteCaseInfo(caseinfoId) {
  return request({
    url: '/bussiness/caseinfo/remove?ids=' + caseinfoId,
    method: 'post',
    isEncrypt: false
  })
}



